BTWait = BTAction:New()
local this = BTWait
this.name = "Wait Task"
function this:New(waitTime)
    local o = {}
    setmetatable(o, self)
    self.__index = self
    o.isOnCD = false
    o.lastFinish = true
	o.waitTime = waitTime
	return o
end
function this:Excute()
    self.executionStatus = BTTaskStatus.Inactive
    if self.waitTime == 0 then
        self.executionStatus = BTTaskStatus.Success
        return BTTaskStatus.Success
    end
    if self.lastFinish == true and self.isOnCD == false then
        self.isOnCD = true
        self.lastFinish = false
        self.countBackwards()
    end
    if self.isOnCD == false then
        self.executionStatus = BTTaskStatus.Success
        self.lastFinish = true
        return BTTaskStatus.Success
    else
        self.executionStatus = BTTaskStatus.Running
        return BTTaskStatus.Running
    end
end

function this:countBackwards()
    
end
